#pragma once

#include <mzfc_inc.h>

#include "CMainWnd.h"



bool SetDVS( bool bOn );



class CWhacAMouseApp : public CMzApp
{
public:
	CWhacAMouseApp( void );

	DWORD	m_dwAppTick;
	DWORD	m_dwSystemTick;
	DWORD	m_dwLastSystemTick;

	inline	bool	Active() const		{ return m_bActive; }
	inline	void	Active( bool val )	{ m_bActive = val; }
	inline	DWORD	GetTickCount()		{ return m_dwAppTick; }

	virtual	BOOL	Init();
	virtual	int		Run();
	virtual	int		Done();

	CWhacAMouseMainWnd		m_MainWnd;

protected:
	void	ActiveExistingApp();
	bool	CheckAppInstance();

	bool	m_bActive;

};



extern CWhacAMouseApp	g_CWhacAMouseApp;